<SCRIPT LANGUAGE="JavaScript">
function verify() {
	var themessage = "You are required to complete the following fields: \n";
	var submitnow;
	if (document.form.username.value=="") {
		themessage = themessage + " - Username\n";
		submitnow = 1;
	}
	if (document.form.password.value=="") {
		themessage = themessage + " -  Password\n";
		submitnow = 1;
	}

//alert if fields are empty and cancel form submit
	if (submitnow == 1) {
		alert(themessage);
		return false;
	}
	else {
		document.form.submit();
	}
}
</script>